package controller;

import model.IPAdress;
import model.Octet;

public class TestRunner {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		Calculator calculating = new Calculator();
		System.out.println(calculating.convertDecimalToBinary(128));
		System.out.println(calculating.convertBinaryToDecimal("11111111"));
		Octet[] addresses = new Octet[4];
		addresses[0] = new Octet("255");
		addresses[1] = new Octet("254");
		addresses[2] = new Octet("253");
		addresses[3] = new Octet("252");

		IPAdress ip2 = new IPAdress(addresses);
		System.out.println(ip2.getAddress());

		IPAdress ip = new IPAdress("127.16.200.1");
		for (int i = 0; i < ip.getAddressBits().length; i++) {
			System.out.println(ip.getAddressBits(i).getBits());
		}

	}
}
